package com.micro.turtle;

import com.micro.turtle.constant.Cmd;
import com.micro.turtle.runner.Runner;
import com.micro.turtle.util.Initer;
import com.micro.turtle.util.Log;

/**
 * 主入口
 *
 * @author jason.lv
 * @since 2022/1/20 16:22
 */

public class GitLab {

    private static volatile boolean running = false;

    public static void stop() {
        running = false;
    }

    public static void main(String[] args) throws Exception {

        // 初始化 Runners
        Initer.init();
        // 启动任务流
        running = true;
        Runner.run(Cmd.CONF);

        while (running) {
            Runner.run();
            Log.line(20);
        }
    }
}
